package com.eastfair.common.service;

import com.eastfair.common.dto.GmApiSvcInfOrganizationDtos;
import com.eastfair.common.dto.GmApiSvcInfOrganizationUserDtos;
import com.eastfair.common.dto.GmApiSvcInfPageDtos;
import com.eastfair.common.res.CrmResult;

/**
 * Crm服务商同步 service.
 *
 * @author dqq
 * @date 2023 /2/13
 */
public interface CrmSvcInfSyncService {

    /**
     * 同步Crm服务商.
     *
     * @param gmApiSvcInfPageDtos the gm api svc inf page dtos
     * @return the crm result
     */
    CrmResult syncSvcInfo(GmApiSvcInfPageDtos gmApiSvcInfPageDtos);


    /**
     * 同步Crm组织数据.
     *
     * @param gmApiSvcInfOrganizationDtos the gm api svc inf page dtos
     * @return the crm result
     */
    void syncOrganizationInfo(GmApiSvcInfOrganizationDtos gmApiSvcInfOrganizationDtos);

    /**
     * Sync organization user info crm result.
     *
     * @param gmApiSvcInfOrganizationUserDtos the gm api svc inf organization user dtos
     * @return the crm result
     */
    void syncOrganizationUserInfo(GmApiSvcInfOrganizationUserDtos gmApiSvcInfOrganizationUserDtos);
}